package com.engine4cloud.tdf.supervision.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 社会工作者-请求对象
 *
 * @author wenjie
 * @date 2024-04-15 11:35:08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "社会工作者-请求对象")
public class GzrySocialWorkerQueryDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;


    /**
     * 社工编码
     */
    @Schema(description = "社工编码")
    private String rybm;

    /**
     * 姓名
     */
    @Schema(description = "姓名", example = "张三")
    private String xm;

    /**
     * 性别
     */
    @Schema(description = "性别", example = "1")
    private String xb;

    /**
     * 手机
     */
    @Schema(description = "手机", example = "177********")
    private String sj;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号", example = "610*****************")
    private String sfzh;

    /**
     * 所属部门id，初次加载时不能传部门id
     */
    @Schema(description = "所属部门id", example = "1")
    @NotNull(message = "所属部门id不能为空")
    private Long deptId;

    public GzrySocialWorkerQueryDTO(String name, Long deptId) {
        this.xm = name;
        this.deptId = deptId;
    }
}